<div class="bar">
    <span><%=username%></span>
    <a href="/write">写文章</a>
    <a href="users/logout">退出</a>
    <a href="/" class="home">
      <img src="/images/home.png" alt="首页">
    </a>
</div>